package com.cddx.logistics.service;

import com.cddx.logistics.domain.dto.QueryDTO;
import com.cddx.logistics.domain.dto.RoleMenuDTO;
import com.cddx.logistics.domain.pojo.Role;
import com.cddx.logistics.domain.vo.SelectObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {
    boolean addRole(Role role);

    boolean updateRole(Role role);

    boolean deleteRole(Integer id);

    PageInfo<Role> queryPage(QueryDTO queryDTO);

   List<SelectObject> queryAll();

    boolean deleteIds(Integer[] ids);

    List<Integer> queryMenu(Integer id);

    boolean addMenuAuth(RoleMenuDTO roleMenuDTO);
}
